#tkinter_entry.py
#coding=utf-8
import tkinter
#创建顶层窗口
topwin = tkinter.Tk()
#初始化窗口大小
topwin.geometry('230x80')  
#设置窗口标题
topwin.title('输入框测试')
#创建标签
tkinter.Label(topwin, text="姓名").grid(row=0)
tkinter.Label(topwin, text="学号").grid(row=1,column=0)
tkinter.Label(topwin, text="测试").grid(row=2)
#创建输入框
e1 = tkinter.Entry(topwin)
e2 = tkinter.Entry(topwin)
e3 = tkinter.Entry(topwin,state=tkinter.DISABLED)
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
e3.grid(row=2, column=1)
#进入主循环
topwin.mainloop()